package view;

import java.awt.Color;

import javax.swing.JButton;
import javax.swing.JList;
import javax.swing.JPanel;

import model.ElementList;

@SuppressWarnings("serial")
public class ListVue extends JPanel
{
	private ElementList elementListModel;
	private JList elementListView;
	
	public ListVue(ElementList list)
	{
		this.elementListModel=list;
		this.elementListView=new JList(this.elementListModel);
		this.add(this.elementListView);
		//this.add(new JButton("test"));
	}

	public ElementList getElementListModel() {
		return elementListModel;
	}

	public void setElementListModel(ElementList elementListModel) {
		this.elementListModel = elementListModel;
	}

	public JList getElementListView() {
		return elementListView;
	}

	public void setElementListView(JList elementListView) {
		this.elementListView = elementListView;
	}

}
